﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="Maticsoft.Web.Admin.Advert.edit" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111"
        style="border-collapse: collapse">
        <tr>
            <td width="100%" height="20" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30">
                            <img height="14" src="../images/book1.gif" width="20">&nbsp;广告管理&nbsp;&gt;&gt;&nbsp;列表
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="100%" height="1" background="../images/sp_bg.gif">
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="10">
            </td>
        </tr>
    </table>
    <!--  快速转换位置按钮  -->

    <!--  内容列表   -->
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center"
        style="margin-top: 8px" id="lists">
        <tr bgcolor="#E7E7E7">
            <td height="28" colspan="6" background="../images/tbg.gif" style="padding-left: 10px;">
                ◆ 广告管理&gt;列表
            </td>
        </tr>
        <tr align="center" bgcolor="#FBFCE2" height="25">
            <td width="6%">
                ID
            </td>
            <td width="20%">
                标题
            </td>
            <td width="20%">
                链接
            </td>
            <td>
                图片
            </td>
            <td width="5%">
                排序
            </td>
            <td width="8%">
                操作
            </td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <tr align='center' bgcolor="#FFFFFF" height="26" align="center" onmousemove="javascript:this.bgColor='#FCFDEE';"
                    onmouseout="javascript:this.bgColor='#FFFFFF';">
                    <td>
                        <%#Eval("PicId")%>
                    </td>
                    <td align='left'>
                        <a href="edit.aspx?act=edit&id=<%#Eval("AdvertId") %>&pId=<%#Eval("PicId") %>">
                            <%#Eval("Title")%> </a>
                    </td>
                    <td>
                        <%#Eval("Url") %>
                    </td>
                    <td>
                        <img src="<%#!string.IsNullOrEmpty(Convert.ToString(Eval("Pic"))) ? "/uploadfiles/ads/"+Eval("Pic") : "../images/dfpic.gif" %>" style="width:300px" />
                    </td>
                    <td>
                        <%#Eval("OrderNo") %>
                    </td>
                    <td>
                        <a href="edit.aspx?act=edit&id=<%#Eval("AdvertId") %>&pId=<%#Eval("PicId") %>">修改</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr bgcolor="#ffffff" style="display:none">
            <td height="36" colspan="6">
                &nbsp; <a href="javascript:void(0);" id="chk_all" class="coolbg">全选</a> <a href="javascript:void(0);"
                    class="coolbg" id="chk_no">取消</a>
                <asp:LinkButton ID="LinkButton1" runat="server" class="coolbg" OnClick="LinkButton1_Click"
                    OnClientClick="return Del();">删除</asp:LinkButton><input id="txtIds" type="text" runat="server"
                        style="display: none" />
            </td>
        </tr>
        <tr align="right" bgcolor="#F9FCEF" style="display:none">
            <td height="36" colspan="6" align="center">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" UrlPaging="true" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="转到: " HorizontalAlign="center" PageSize="10" OnPageChanged="AspNetPager1_PageChanged" EnableTheming="true">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="40">
            编辑图片
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="95" align="center" bgcolor="#FFFFFF">
                <table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="text-align: left;
                    border: 1px solid #cfcfcf; background: #ffffff;">
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            标题：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="标题不能为空" 
                                ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            链接：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtUrl" runat="server" Width="200px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator3" runat="server" ErrorMessage="链接不能为空" 
                                ControlToValidate="txtUrl"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class='bline' height="26" style="padding-left: 10px;">
                            上传图片：
                        </td>
                        <td class='bline'>
                            <input id="File1" type="file" runat="server" style="height:25px; width:210px;" /></td>
                    </tr>
                    <tr>
                        <td class='bline' height="26" style="padding-left: 10px;">
                            图片：
                        </td>
                        <td class='bline'>
                            <asp:Image ID="Image1" runat="server" ImageUrl="../images/dfpic.gif"  style="width:300px;" />
                        </td>
                    </tr>
                    <tr>
                        <td class='bline' height="26" style="padding-left: 10px;">
                            排序：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtOrderNo" runat="server" Text="0" Width="40px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator2" runat="server" ErrorMessage="排序不能为空" 
                                ControlToValidate="txtOrderNo" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator1" runat="server" ErrorMessage="请输入数字" 
                                ControlToValidate="txtOrderNo" ValidationExpression="^[0-9]\d*$" 
                                Display="Dynamic"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF"
                    style="border: 1px solid #cfcfcf; border-top: none;">
                    <tr>
                        <td width="1%" height="35">
                        </td>
                        <td width="99%" valign="bottom">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/button_ok.gif"
                                class="np" onclick="ImageButton1_Click" />
                            &nbsp;&nbsp;<a href="list.aspx"><img src="../images/button_back.gif" width="60" height="22" border="0" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
